<?php
echo '
<div align="center">

<form method="post" enctype="multipart/form-data">
        <p>
    Login: <input type="text" name="login"  /></p>
	
	<p>
    Mot de passe : 

	<input  type="text" name="mdp" ></input> </P>
	
	

 <p> <input type="submit" value="Se connecter" name="authentification" />
</p> 
</div>
</form>';
if (isset ($_POST['authentification'])) {
	if (empty ($_POST['login']) || empty ($_POST['mdp'])) {
		echo "Un ou des champ(s) non rempli(s) !!! ";
	} else {
		$login = $_POST['login'];
		$mdp = $_POST['mdp'];

		if ($login == 'lamzo' && $mdp == 'lamzo') {
			echo '<script language="Javascript">
		
		document.location.replace("http://localhost/sitefamille/admin/");
		
		</script>';
			#header("Location: ./admin/");
		} else {
			echo 'erreur sur login et/ou mot de passe ';
		}

	}
}
?>